<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/echarts.js"></script>
	</head>
	<body>
		<div id="main" style="width: 100%;height: 180px;border-color: #000000;"></div>
		
		<script >
		
		  require.config({
		        paths: {
		            echarts: 'js'
		        }
		    });
		  require(
			        [
			            'echarts',
			            'echarts/chart/bar',
			            'echarts/chart/line'
			        ],
			        function (ec) {
			            //--- 折柱 ---
			            var myChart = ec.init(document.getElementById('main'));
			            myChart.setOption({
			                tooltip : {
			                    trigger: 'axis'
			                },
			                legend: {
			                    data:['数量']
			                },
			                toolbox: {
			                    show : true,
			                    feature : {
			                        mark : {show: true},
			                        dataView : {show: true, readOnly: false},
			                        magicType : {show: true, type: ['line', 'bar']},
			                        restore : {show: true},
			                        saveAsImage : {show: true}
			                    }
			                },
			                calculable : true,
			                xAxis : [
			                    {
			                        type : 'category',
			                        data : ['1','2','3','4','5','6','7','8','9','10','11','12']
			                    }
			                ],
			                yAxis : [
			                    {
			                        type : 'value',
			                        splitArea : {show : true}
			                    }
			                ],
			                series : [
			                   /*  {
			                        name:'蒸发量',
			                        type:'bar',
			                        data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
			                    }, */
			                    {
			                        name:'日志',
			                        type:'bar',
			                        data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
			                    }
			                ]
			            });
			           }
    				);
		</script>
	</body>
</html>
